 const templates = [
  {
    name: 'webpack-template',
    desc: 'This is the content of webpack-template',
    value:'yingside/webpack-template'
  },
  {
    name: 'vue-cli-template',
    desc: 'This is the content of vue-cli-template',
    value:'yingside/vue-cli-template'
  },
  {
    name: 'vue3-template',
    desc: 'This is the content of vue3-template',
    value:'yingside/vue3-template'
  }
]
export const messages = [
  {
    message: "请输入项目名称:",
    name: "name",
    validate(val) { 
      if (val.match(/[\u4E00-\u9FFF`~!@#$%&^*[\]()\\;:<.>/?]/g)) { 
        return "项目名称存在非法字符";
      }
      return true
    }
  },
  {
    message: "请输入项目关键词(,分割):",
    name: "keywords",
  },
  {
    message: "请输入项目描述:",
    name: "description",
  },
  {
    message: "请输入作者名称:",
    name: "author",
  }
]
export default templates